(function () {
    var $self;
    return $self = Ext.define('Aurora.model.AccountItem', {
        extend: 'Ext.data.Model',
        xtype: 'accountItem',
        config: {
            idProperty: 'accountId',
            fields: [
                { name: 'accountId', mapping: 'accountId',
                    sortType: function(value) {
                        return Ext.String.leftPad(value, 10, '0');
                    }
                },
                { name: 'id', mapping: 'id' },
                { name: 'accountType', mapping: 'accountType' },
                { name: 'name', mapping: 'name' },
                { name: 'emailAddress', mapping: 'emailAddress' }
            ]
        }
    });
})();